<template>
  <div class="home-background">
    <!--        头部-->
    <div class="header">
      <navbar class="home-nav">
        <div slot="left"><div style="background-color: #B0E3FF;width: 100%;height: 100%"></div></div>
        <div slot="center">
          <el-button type="text" class="text">全部活动</el-button>
        </div>
        <div slot="right">
          <i class="el-icon-search top-icon"></i>
          <i class="el-icon-message top-icon"></i>
        </div>
      </navbar>
    </div>
    <div style="width: 100%;height: 49px"></div>
    <!--        选择区-->
    <div class="act-type-choose">
      <div class="each-column">
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
      </div>
      <div class="each-column">
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
      </div>
      <div class="each-column">
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
      </div>
      <div class="each-column">
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
      </div>
      <div class="each-column">
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
      </div>
      <div class="each-column">
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
      </div>
      <div class="each-column">
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
      </div>
      <div class="each-column">
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
        <div class="each-one">
          <img src="../../../assets/img/calligraphy.jpg">
          <p>书法展</p>
        </div>
      </div>

    </div>
    <!--        活动-->
    <div class="all-act">
      <h3>
        <el-button type="text" class="act-choose">最新</el-button>
        <el-button type="text" class="act-choose">最热</el-button>
      </h3>
      <searchact></searchact>
      <searchact></searchact>
      <searchact></searchact>
      <searchact></searchact>
      <searchact></searchact>
      <searchact></searchact>
      <searchact></searchact>
    </div>
    <!--        导航栏-->
    <div class="home-bar">
      <tabbar>
        <tabbarItem>
          <img slot="item-icon" src="../../../assets/img/tabbar/home_grey.png">
          <div slot="item-text">首页</div></tabbarItem>
        <tabbarItem>
          <img slot="item-icon" src="../../../assets/img/tabbar/find_grey.png">
          <div slot="item-text">发现</div></tabbarItem>
        <tabbarItem>
          <img slot="item-icon" src="../../../assets/img/tabbar/ground_grey.png">
          <div slot="item-text">广场</div></tabbarItem>
        <tabbarItem>
          <img slot="item-icon" src="../../../assets/img/tabbar/my_grey.png">
          <div slot="item-text">我的</div></tabbarItem>
      </tabbar>
    </div>
  </div>
</template>

<script>
import searchact from "../../../components/search/search-act";
import navbar from "../../../components/nav-bar/nav-bar";
import tabbar from "../../../components/tabbar/tabbar";
import tabberItem from "../../../components/tabbar/tabberItem";
    export default {
        name: "all-activities",
        components:{
          navbar,
          searchact,
          tabbar,
          tabberItem
        }
    }
</script>

<style scoped>
  .home-background{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2;
  }
  .header{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }
  .home-nav{
    background-color: #B0E3FF;
    color: white;
  }
  .text{
    color: white;
    font-size: 20px;
  }
  .top-icon{
    color: white;
    font-size: 26px;
    margin-right: 5px;
  }

  .act-type-choose{
    width: 100%;
    height: 250px;
    background-color: white;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
  }
  .each-column{
    width: 110px;
    height: 100%;
    margin: 0;
    margin-left: 20px;
    padding: 0;
  }
  .each-one{
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 0;
  }
  .each-one img{
    width: 70px;
    height: 70px;
    border-radius: 100px;
  }
  .each-one p{
    font-size: 14px;
    text-align: center;
  }

  .all-act{
    width: 100%;
    height: auto;
    background-color: white;
  }
  .all-act h3{
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .act-choose{
    color: #555555;
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    margin-left: 12px;
  }
  .home-bar{
    position: fixed;
    bottom: 0;
  }
</style>
